import requests

# 正确的Cookie处理方式
cookies = {
    'SESSDATA': 'c93e3f6a%2C1774690904%2Cba83a%2A91CjAK16MXmyyfJzvDhAbUckZ9okvVYRZ9FBnAxoCyoshjDba50pbcsUsBpNe6cvWsz3oSVkhsX0wtUk1VSXQzWFVROExfVktJQXgnT0t0RDQ4WlFvazA1T2RLX2lBVWRUNlY2YjBubm41S2Q2TE1EQW55UWFjbnNoN0E5TDM4NTBHVk50OEN2V0x3IIEC'
}

headers = {
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36'
}

response = requests.get(
    'https://api.bilibili.com/x/member/web/account?web_location=333.33',
    headers=headers,
    cookies=cookies
)
print(response.text)